<div style="clear: both; height: 5px;"></div>
<div id="divUpComingIntro" class="wrap-chung">
	<div class="sapdau">
		<div class="bordertop2"></div>
        <div class="title2">CÁC PHIÊN SẮP ĐẤU</div>
    	<div class="subcontent">
	        <?php
							
				$auction_view = @mysql_query ( "select * from auction_view where  start_time > NOW()" );
				if (! $auction_view) {
					die ( 'errors' );
				}
							
				while ( $result = mysql_fetch_assoc ( $auction_view ) ) {
								
				?>
			<div class="spdangdau" ref='bid-<?php echo $result['auctionID'] ;?>'>
				<div class="ctspdangdau">
					<p class="title">
                        <a id="" href=""><?php echo $result['name']?></a>
                    </p>
                    <br>
                    <a id="" href="chi_tiet_san_pham.php?id=<?php echo $result['auctionID']?>">
						<img id="" class="img-home" src="../uploads/ProductUpload/<?php echo $result['image']; ?>" />
					</a>
                    <p class="giaTT">
                        Giá thị trường:
                        <span id=""><?php echo number_format((int)$result['price'], 0, '.', ',');?> đ</span>
                    </p>
                    <div id='divTimeLeft57' class="dongho" ref="0">00:00:01</div>
                    <p class="gia">
                        <span id="">0 đ</span></p>
                    <p class="nguoidau">
                        <span id="">--------------</span></p>
                    <p class="bt"></p>
                </div>
                <div class="footersp">
                    <span id="" class="buocgia"><?php echo (int)$result['price_per_bid']; ?> đ</span>
                    <div class="dtien">
                        <div class="img-tien">
                            <img id="" src="../images/img-coin2.png" />
                        </div>
                        <div class="tien">
                            <span id="">x50</span>
                        </div>
                    </div>
                </div>
            </div>
			<?php }?>
		</div>
	</div>
</div>